package com.lxw.study.structural.proxy.dynamicproxy.proxyfactory.advice;

import lombok.extern.slf4j.Slf4j;
import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;
import java.util.Arrays;

@Slf4j
public class MyAfterReturningAdvice implements AfterReturningAdvice {
    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) {
        log.info("方法返回之后 方法:{},入参:{},返回值:{}", method.getName(), Arrays.toString(args), returnValue);
    }
}
